<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('操作记录')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">

        <div class="col-sm-24    select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script>
    var prefix = ctx + "system/mMailWF/forShow";
    $(function () {
        var options = {
            url: prefix + "/logListJson?pkId="+[[${pkId}]],
            sortName: "logId",
            sortOrder: "desc",
            uniqueId: "logId",
            modalName: "操作记录",
            fixedColumns: true,
            fixedNumber: 1,
            fixedRightNumber: 1,
            columns: [{
                checkbox: true
            },
        {field:'logId',title:'logId',visible: false},
        {field:'wfId',title:'WfId',visible: false},
        {field:'logTime',title:'操作时间',align:'center',sortable:true},
        {field:'opDeptName',title:'单位名称',align:'left',halign:'center',sortable:true},
        {field:'opUserName',title:'操作人',align:'center',sortable:true},
        {field:'opAction',title:'动作',align:'center'},
        {field:'opDesc',title:'操作简述',align:'center',halign:'center',width:420},
        {field:'wsOpen',title:'公开',align:'left',sortable:true,formatter:function(value,row,index){return fmtWFormOpen(value,row,index);}},
        {field:'wsDesc',title:'公开内容',align:'left',width:110,halign:'center'}]
        };
        $.table.init(options);
    });
    function fmtWFormOpen(value,row,index){
        var rtn = value;
        var myVal = parseInt(value);
        switch (myVal) {
            case 0:
                rtn = '<div class="spLDark">否</div>';
                break;
            case 1:
                rtn = '<div class="spRed">是</div>';
                break;

            default:
                break;
        }
        return rtn;
    }
</script>
</body>
</html>

